package com.wxzz.elearing.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wxzz.elearing.user.entity.AdminRolePermission;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author
 * @since 2021-03-11
 */
public interface AdminRolePermissionMapper extends BaseMapper<AdminRolePermission> {

    @Update("UPDATE admin_role_permission SET deleted = 1 WHERE admin_role_id = #{adminRoleId}")
    Integer deleteAdminRolePermissionByAdminRoleId(@Param("adminRoleId") Long adminRoleId);
}
